import request from '@/utils/request'

export function listmaintainLevel(query) {
  return request({
    url: '/maintain/maintainLevel/list',
    method: 'get',
    params: query
  })
}

export function createmaintainLevel(data) {
  return request({
    url: '/maintain/maintainLevel/create',
    method: 'post',
    data
  })
}

export function readmaintainLevel(data) {
  return request({
    url: '/maintain/maintainLevel/get/' + data.id,
    method: 'get'
  })
}

export function updatemaintainLevel(data) {
  return request({
    url: '/maintain/maintainLevel/update',
    method: 'post',
    data
  })
}

export function deletemaintainLevel(data) {
  return request({
    url: '/maintain/maintainLevel/delete/' + data.fmmlevelno,
    method: 'delete'
  })
}
